package com.unicom.lottery.entity;

import javax.xml.bind.annotation.XmlRootElement;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel( value = "响应消息" )
@JsonSerialize
@XmlRootElement
public class ReturnMsg {
	public void setErrCode( String errCode) {
		this.errCode = errCode;
	}

	public void setErrMsg( String errMsg) {
		this.errMsg = errMsg;
	}

	@ApiModelProperty( value = "错误编码,SUC：成功，ERR_XXX：失败，具体含义详见错误码表" , required = true )
	private String errCode;

	@ApiModelProperty( value = "错误描述，可以是中文" , required = false )
	private String errMsg;

	public String getErrCode() {
		return errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public ReturnMsg( String errCode , String errMsg ) {
		this.errCode = errCode;
		this.errMsg = errMsg;
	}

}